﻿@using WaterRevenueMS.WebUI.Extension.MvcHelper
@using WaterRevenueMS.Domain.ViewModels.Customer.Customer
@model CustomerModel

@using (Html.BeginForm("Create", "Customer", FormMethod.Post, new { @class = "form-horizontal", @id = "modal-content" }))
{
@Html.HiddenFor(t=>t.RuleOfCode)
<div class="control-group">
    <label class="control-label-form">
        用户编号 :
    </label>
    <div class="controls">
        @if (Model.RuleOfCode == 0)
        {
            @Html.TextBoxFor(t => t.Yong_HBH, new { @class = "form-control" })
            @Html.ValidationMessageFor(m => m.Yong_HBH)
        }
        else
        {
            @Html.TextBoxFor(t => t.Yong_HBH, new { @class = "form-control", @readonly = "readonly" })
            @Html.ValidationMessageFor(m => m.Yong_HBH)
            <label class="red">由系统自动生成</label>
        }
    </div>
</div>
<div class="control-group">
    <label class="control-label-form">
      <label class="red">*</label>户主姓名:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Hu_ZXM, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Hu_ZXM)
    </div>
</div>
<div class="control-group">
    <label class="control-label-form">
      <label class="red">*</label>联系电话:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Lian_XDH, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Lian_XDH)
    </div>
</div>
<div class="control-group">
    <label class="control-label-form">
       <label class="red">*</label>用户住址:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Yong_HDZ, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Yong_HDZ)
    </div>
</div>
<div class="control-group">
    <label class="control-label-form">
      <label class="red">*</label>所属表册:
    </label>
    <div class="controls">
        @Html.DropDownListFor(t => t.Biao_CSZ_No, Model.MeterBookItems, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Biao_CSZ_No)
    </div>
</div>
<div class="control-group">
    <label class="control-label-form">
      身份证号:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Shen_FZH, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Shen_FZH)
    </div>
</div>
<div class="control-group">
    <label class="control-label-form">
      银行帐号:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Yin_HZH, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Yin_HZH)
    </div>
</div>
<div class="control-group">
    <label class="control-label-form">
      所属开户银行:
    </label>
    <div class="controls">
        @Html.DropDownListFor(t => t.Yin_HSZ_No, Model.BankItems, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Yin_HSZ_No)
    </div>
</div>

<div class="control-group">
    <label class="control-label-form">
       户主性别:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Hu_ZXB, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Hu_ZXB)
    </div>
</div>
<div class="control-group">
    <label class="control-label-form">
       住房面积:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Zhu_FMJ, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Zhu_FMJ)
    </div>
</div>
<div class="control-group">
    <label class="control-label-form">
       工作单位:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Gong_ZDW, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Gong_ZDW)
    </div>
</div>
<div class="control-group">
    <label class="control-label-form">
       家庭成员:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.Jia_TCY, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.Jia_TCY)
    </div>
</div>
<div class="control-group">
    <label class="control-label-form">
       排序序号:
    </label>
    <div class="controls">
        @Html.TextBoxFor(t => t.OrderNo, new { @class = "form-control" })
        @Html.ValidationMessageFor(m => m.OrderNo)
    </div>
</div>
}